home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-21 / qwhite.zip / PROTMAN.TEC < prev    next >
Text File  |  1992-03-09  |  6KB  |  109 lines

  1. ID:PR Using Optimize with PROTMAN.DOS
  2. Quarterdeck Technical Note #227
  3. by the Quarterdeck Compatibility Dept.
  4. last revision:  12 February 1992
  5.  
  6.      PROTMAN.DOS is the protocol manager for Microsoft's MS-DOS LAN Manager.  
  7. It is also used in 3COM's 3Open network configuration and in many other 
  8. network software configurations.  PROTMAN is a device driver that is loaded 
  9. from the CONFIG.SYS file and is usually the first piece of network software 
  10. loaded.
  11.      Many existing versions of PROTMAN.DOS seem to need only 100 bytes or so 
  12. of memory for themselves.  In fact, they put a chunk of additional code in 
  13. available memory, 32K from the top of whatever region of memory they are 
  14. loaded into.  This code, which is used by other network programs that make 
  15. calls to PROTMAN, is completely exposed to any other program that allocates 
  16. memory from DOS.  The PROTMAN programmers, realizing that this exposed code 
  17. would only be exercised by other network drivers and TSRs, no doubt assumed 
  18. that it would not be overwritten until after it was no longer needed.  This 
  19. assumption is not necessarily valid when programs are being loaded between 
  20. 640K and 1024K.  
  21.  
  22.      Among the possible consequences of PROTMAN's unusual behavior: 
  23.  
  24.      1) Any program loading high into a region with PROTMAN is likely to 
  25.      overwrite the code that PROTMAN places in available memory, thus causing 
  26.      subsequent network programs to fail.
  27.  
  28.      2) PROTMAN writes some of itself 32K from the top of its memory region, 
  29.      regardless of the size of the region.  If you load PROTMAN in a 32K 
  30.      region between 640K and 1024K, it will write right over itself, and the 
  31.      system will hang as PROTMAN loads in the CONFIG.SYS routine.  If you load 
  32.      PROTMAN in a 16K region, it will write over something beneath it in 
  33.      memory, with unpredictable results. 
  34.  
  35.      3) LOADHI's /GETSIZE (/GS) parameter writes its signature throughout 
  36.      available memory as a method of determining how much memory a driver or 
  37.      TSR uses when loading.  When used after PROTMAN, LOADHI /GS will 
  38.      overwrite PROTMAN's exposed code, which is in memory that DOS reports as 
  39.      unused.  In such a case, network programs that load after PROTMAN and 
  40.      make calls to it usually hang the system, giving an Exception #13 error 
  41.      on systems using QEMM-386. 
  42.  
  43.      4) Optimize, which relies on LOADHI /GS, will likely fail in the 
  44.      Detection Phase when PROTMAN is loaded.  The system will usually hang, 
  45.      not when PROTMAN loads, but when one of the subsequent network drivers or 
  46.      TSRs loads.
  47.  
  48.      Versions of PROTMAN.DOS after 2.0C (CSD rev. 8) no longer place code in 
  49. available memory.  For those users with earlier versions of PROTMAN, we have 
  50. tested a method which lets users run Optimize on PROTMAN systems without 
  51. getting Exception #13's during the Detection Phase.  This method should leave 
  52. your system configured in such a way that all four of the above dangers are 
  53. avoided. 
  54.  
  55. 1) Place the RAM parameter on QEMM-386 or QEMM-50/60, or install QRAM in the 
  56. CONFIG.SYS file.  Reboot, and make sure that the biggest High RAM region (as 
  57. reported on Manifest's First Meg/Overview screen) is at least 33K in size.  
  58.      If the largest High RAM region isn't at least 33K big, you cannot run 
  59. Optimize with PROTMAN, and you should not proceed to step 2.  Instead, you 
  60. should manually place LOADHI.SYS and LOADHI.COM on every line in the 
  61. CONFIG.SYS and AUTOEXEC.BAT file that contains a program that you want to load 
  62. high.  (See the LOADHI chapter in your QEMM or QRAM manual for more details.)  
  63. Do not, however, place LOADHI on the PROTMAN line.  Then, reboot without 
  64. running Optimize.  This configuration should let you successfully load most of 
  65. your programs high. 
  66.  
  67. 2) If you have any programs that allocate Upper Memory Blocks (UMBs) through 
  68. the Extended Memory Specification, you may wish to stop them from doing so (by 
  69. using the programs' own parameters) before proceding further.  Such programs 
  70. can interfere with Optimize's calculations under any circumstances; with the 
  71. procedure that we are about to use, a program that allocates a UMB may cause 
  72. network drivers or TSRs to fail.
  73.  
  74. 3) If your biggest High RAM region is 33K or larger, start Optimize.  Let 
  75. Optimize modify your CONFIG.SYS and AUTOEXEC.BAT files in preparation for the 
  76. Detection Phase.  When you see the Optimize screen titled "DETECTION PHASE," 
  77. hit Esc, then F1, to break out of Optimize.
  78.      NOTE:  For those people using 3COM cards on DECNET:  We have some 
  79. unconfirmed accounts that PROTMAN used in this setting uses more than 
  80. 32K.  One DECNET user's troubles did not go away until he loaded PROTMAN 
  81. into a 48K region. 
  82.  
  83. 4) Use an editor to edit the PROTMAN line in the CONFIG.SYS file.  Remove all 
  84. the parameters to LOADHI.SYS on that line.  (There should be two: a /GS 
  85. parameter that directs the /GETSIZE data to LOADHI.OPT, and a LABEL 
  86. parameter.)  Leave LOADHI.SYS and all PROTMAN's parameters on the line.  And 
  87. let all the other lines alone.
  88.  
  89. For example, if the PROTMAN line in the CONFIG.SYS says: 
  90.  
  91. DEVICE=C:\QEMM\LOADHI.SYS /GS:C:\QEMM\LOADHI.OPT /LABEL:AB 
  92. ...C:\LANMAN\PROTMAN.DOS /I:C:\LANMAN\PROTOCOL.INI
  93.  
  94. ...then change the line to: 
  95.  
  96. DEVICE=C:\QEMM\LOADHI.SYS C:\LANMAN\PROTMAN.DOS 
  97. .../I:C:\LANMAN\PROTOCOL.INI
  98.  
  99. 5) Reboot and let Optimize complete normally.
  100.  
  101.      When you're all done, PROTMAN will be loaded low, but it only uses 100 
  102. bytes or so.  All other programs will be Optimized.
  103.  
  104.   ************************************************************************
  105.   *This technical note may be copied and distributed freely as long as it*
  106.   *is distributed in its entirety and it is not distributed for profit.  *
  107.   *         Copyright (C) 1991-2 by Quarterdeck Office Systems           *
  108.   ************************ E N D   O F   F I L E *************************
  109.